import React from 'react'
import { Toast, NavBar } from 'react-vant'
import { useNavigate } from 'react-router-dom'
function index() {
    const navigate = useNavigate()
    return (
        <div>
            <NavBar
                title='商品详情'
                leftText='返回'
                onClickLeft={() => navigate(-1)}
                onClickRight={() => Toast('按钮')}
            />

            <div>
                  <img src="../src/assets/713.jpg" alt="" />
            </div>
        </div>
    )
}

export default index